package com.sidianzhong.sdz.model;

import java.io.Serializable;

/**
 * @author 
 */
public class WebStationmaterials implements Serializable {
    private Integer id;

    private String materialname;

    private Integer materialtype;

    private String equipmenttypekey;

    private String equipmentkey;

    private String materialpath;

    private String materialformat;

    private Integer subtype;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMaterialname() {
        return materialname;
    }

    public void setMaterialname(String materialname) {
        this.materialname = materialname;
    }

    public Integer getMaterialtype() {
        return materialtype;
    }

    public void setMaterialtype(Integer materialtype) {
        this.materialtype = materialtype;
    }

    public String getEquipmenttypekey() {
        return equipmenttypekey;
    }

    public void setEquipmenttypekey(String equipmenttypekey) {
        this.equipmenttypekey = equipmenttypekey;
    }

    public String getEquipmentkey() {
        return equipmentkey;
    }

    public void setEquipmentkey(String equipmentkey) {
        this.equipmentkey = equipmentkey;
    }

    public String getMaterialpath() {
        return materialpath;
    }

    public void setMaterialpath(String materialpath) {
        this.materialpath = materialpath;
    }

    public String getMaterialformat() {
        return materialformat;
    }

    public void setMaterialformat(String materialformat) {
        this.materialformat = materialformat;
    }

    public Integer getSubtype() {
        return subtype;
    }

    public void setSubtype(Integer subtype) {
        this.subtype = subtype;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WebStationmaterials other = (WebStationmaterials) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMaterialname() == null ? other.getMaterialname() == null : this.getMaterialname().equals(other.getMaterialname()))
            && (this.getMaterialtype() == null ? other.getMaterialtype() == null : this.getMaterialtype().equals(other.getMaterialtype()))
            && (this.getEquipmenttypekey() == null ? other.getEquipmenttypekey() == null : this.getEquipmenttypekey().equals(other.getEquipmenttypekey()))
            && (this.getEquipmentkey() == null ? other.getEquipmentkey() == null : this.getEquipmentkey().equals(other.getEquipmentkey()))
            && (this.getMaterialpath() == null ? other.getMaterialpath() == null : this.getMaterialpath().equals(other.getMaterialpath()))
            && (this.getMaterialformat() == null ? other.getMaterialformat() == null : this.getMaterialformat().equals(other.getMaterialformat()))
            && (this.getSubtype() == null ? other.getSubtype() == null : this.getSubtype().equals(other.getSubtype()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMaterialname() == null) ? 0 : getMaterialname().hashCode());
        result = prime * result + ((getMaterialtype() == null) ? 0 : getMaterialtype().hashCode());
        result = prime * result + ((getEquipmenttypekey() == null) ? 0 : getEquipmenttypekey().hashCode());
        result = prime * result + ((getEquipmentkey() == null) ? 0 : getEquipmentkey().hashCode());
        result = prime * result + ((getMaterialpath() == null) ? 0 : getMaterialpath().hashCode());
        result = prime * result + ((getMaterialformat() == null) ? 0 : getMaterialformat().hashCode());
        result = prime * result + ((getSubtype() == null) ? 0 : getSubtype().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", materialname=").append(materialname);
        sb.append(", materialtype=").append(materialtype);
        sb.append(", equipmenttypekey=").append(equipmenttypekey);
        sb.append(", equipmentkey=").append(equipmentkey);
        sb.append(", materialpath=").append(materialpath);
        sb.append(", materialformat=").append(materialformat);
        sb.append(", subtype=").append(subtype);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}